<%@ page import="entity.User" %><%--
  Created by IntelliJ IDEA.
  User: 19339
  Date: 2022/4/18
  Time: 11:38
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" import="entity.User" %>
<html>
<head>
    <title>$Title$</title>
</head>
<body>
<%
    User user=(User)session.getAttribute("user");
    if(user!=null){
%>
这是欢迎页面！ 欢迎<%=user.getName() %>
<%}
   else response.sendRedirect("login.jsp");
%>
</body>
</html>
